home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWString / Include / FWBndStr.h next >
Encoding:
Text File  |  1996-04-25  |  2.0 KB  |  78 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWBndStr.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWBNDSTR_H
  11. #define FWBNDSTR_H
  12.  
  13. #ifndef FWPSTR_H
  14. #include "FWPStr.h"
  15. #endif
  16.  
  17. //========================================================================================
  18. //    CLASS FW_CString32
  19. //========================================================================================
  20.  
  21. class FW_CString32 : public FW_CString
  22. {
  23. public:
  24.  
  25.     FW_DECLARE_CLASS
  26.     FW_DECLARE_AUTO(FW_CString32)
  27.     
  28.     virtual ~ FW_CString32();
  29.     FW_CString32();
  30.     FW_CString32(const FW_CString32 &string);
  31.     FW_CString32(const FW_CString &string);
  32.     FW_CString32(const FW_Char *bytes, FW_ByteCount numberBytes);
  33.     FW_CString32(const FW_Char *items);
  34.     
  35.     FW_CString& operator=(const FW_CString32 &string);
  36.  
  37. //----------------------------------------------------------------------------------------
  38. // Streaming
  39. public:
  40.  
  41.     static void* Read(FW_CReadableStream& stream, FW_ClassTypeConstant type);
  42.  
  43. private:
  44.     unsigned char fBuffer[36];
  45. };
  46.  
  47. //========================================================================================
  48. //    CLASS FW_CString255
  49. //========================================================================================
  50.  
  51. class FW_CString255 : public FW_CString
  52. {
  53. public:
  54.  
  55.     FW_DECLARE_CLASS
  56.     FW_DECLARE_AUTO(FW_CString255)
  57.     
  58.     virtual ~ FW_CString255();
  59.     FW_CString255();
  60.     FW_CString255(const FW_CString255 &string);
  61.     FW_CString255(const FW_CString &string);
  62.     FW_CString255(const FW_Char *bytes, FW_ByteCount numberBytes);
  63.     FW_CString255(const FW_Char *items);
  64.     
  65.     FW_CString& operator=(const FW_CString255 &string);
  66.     
  67. //----------------------------------------------------------------------------------------
  68. // Streaming
  69. public:
  70.  
  71.     static void* Read(FW_CReadableStream& stream, FW_ClassTypeConstant type);
  72.  
  73. private:
  74.     unsigned char fBuffer[260];
  75. };
  76.  
  77. #endif
  78.